<?php
/* 
    Project     : 48c6c450f1a4a0cc53d9585dc0fee742
    Created on  : Mar 16, 2013, 11:29:15 PM
    Author      : Truong Khuong - khuongxuantruong@gmail.com
    Description :
        Purpose of the stylesheet follows.
*/
class setting_model extends CI_Model {

    function __construct()
    {
        parent::__construct();
        //if(!isset($_SESSION['frontend']['congifs'])){
            $configs=$this->_gets();
            foreach ($configs as $c){
                $_SESSION['frontend']['congifs'][$c->conf_key]=$c;
            }
        //}
		
    }
    function _gets(){
        $query=$this->db
                ->get('config');
        return $query->result();
    }
    
}
